function PVdel(id,submitok){
	if(submitok == 'ajax_video_del'){
		var url= 'my_video';
	}else{
		var url= 'my_photo';
	}
	zeai.ajax({url:url+zeai.extname,data:{submitok:submitok,id:id}},function(e){var rs=zeai.jsoneval(e);
		if(rs.flag==1){location.reload(true);}
	});
}
function photoView(b) {
	if (browser=='wx'){
		wx.previewImage({current:b,urls:pic_list});
	}else{
		ZeaiM.piczoom(b);
	}
}
function zeaiplay(zeai_cn) {
	var v = o('zeaiVbox'+zeai_cn);
	zeai.msg('视频加载中...');
	v.play();
}
function video_up(json){
	if(browser=='app'){
		app_video_uploads({url:"my_video.php?submitok=ajax_video_up_app"},function(){location.reload(true);});
		return false;
	}
	var ftypearr = ["video/mp4","video/x-ms-wmv","video/quicktime","video/3gpp","video/x-flv"];
	if(zeai.empty(o('video'))){
		var video = zeai.addtag('input');video.id='video';video.type='file';video.accept="video/mp4,video/x-ms-wmv,video/quicktime,video/3gpp,video/x-flv";video.hide();
		document.body.append(video);
	}else{video=o('video');}
	video.click();
	video.onchange = function(){
		var FILES = video.files[0];
		if (FILES['size'] > upVMaxMB*1024000){videoNull('视频太大，已超过'+upVMaxMB+'M，请重选');return false;}
		if (!ftypearr.in_array(FILES['type'])){videoNull('格式错误,只能 mp4/mov/3gp/mov等'+FILES['type']);return false;}
		var filename = FILES['name'].toLowerCase();var extname = filename.substring(filename.lastIndexOf(".")+1,filename.length);
		zeai.msg("正在上传中...<span id='upbfb'></span>％",{time:3600});
		var postjson = {file:FILES,extname:extname};Object.assign(postjson,json);
		zeai.ajax({"url":json.url,"ajaxLoading":0,"data":postjson},function(e){location.reload(true);},function(bfbnum){
			if(!zeai.empty(o('upbfb')))o('upbfb').innerHTML = bfbnum;	
			if (bfbnum==100){zeai.msg(0);zeai.msg('正在保存...',{time:3600});}
		});
	}
	function videoNull(str){zeai.msg(str);video.remove();}
}